<?php

namespace app\api\validate;

use think\Validate;

class DashbordValiate extends Validate
{
    protected $rule =   [
        'stock_id' => 'require',//仓库编号
        'temperature_inside_avg' => 'require',//仓内平均温度
        'temperature_outside_avg' => 'require',//仓外平均温度
        'humidity_avg' => 'require',//仓内平均湿度
        'electric' => 'require', //用电量
        'sensor' => 'require',
    ];
}